package com.pubinfo.passbook.common.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pubinfo.passbook.common.entity.TPassbook;
import com.pubinfo.passbook.common.entity.TRuleAudit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pubinfo.passbook.common.entity.TWiteoffInstance;
import com.pubinfo.passbook.common.model.dto.rule.RuleAuditParam;
import com.pubinfo.passbook.common.model.vo.RuleAuditVo;
import com.pubinfo.passbook.common.model.vo.rule.AuditDetailVo;
import com.pubinfo.passbook.common.model.vo.rule.TRuleAuditDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.pubinfo.passbook.common.entity.TRuleAudit
 */
public interface TRuleAuditMapper extends BaseMapper<TRuleAudit> {

  IPage<TRuleAuditDetailVo> selectRuleAudit(IPage<TRuleAuditDetailVo> iPage, @Param("param") RuleAuditParam param);
  
  AuditDetailVo getAuditDetail(String witeoffId);

  AuditDetailVo getAuditDetailById(String id);

  List<RuleAuditVo> selectAcctAndAuditTime(String witeoffId);

  TRuleAudit getAuditByWiteoffId(String witeoffId);

}




